package com.shopx.cm.service;

import com.shopx.cm.bean.CmBrandCk;
import com.shopx.cm.model.CmBrandCkModel;
import com.shopx.cmm.DTO.PageDTO;
import java.util.List;
import java.util.Map;
//import com.shopx.base.exception.ShopxException;

/**
 * TODO
 * @author lituo
 * @className: CmBrandCk
 * @date 2025-02-21
 */
public interface ICmBrandCkService {

    /**
     * 查询明细记录
     * @author lituo
     * @date 2025-02-21
     * @param cmBrandCk
     * @return CmBrandCkModel
     */
    CmBrandCkModel selectByPrimaryKey(CmBrandCk cmBrandCk);

    /**
     * 新增记录
     * @author lituo
     * @date 2025-02-21
     * @param cmBrandCk
     * @return int
     */
    int insertSelective(CmBrandCk cmBrandCk);

    /**
     * 修改记录
     * @author lituo
     * @date 2025-02-21
     * @param cmBrandCk
     * @return int
     */
    int updateByPrimaryKeySelective(CmBrandCk cmBrandCk);

    /**
     * 删除记录
     * @author lituo
     * @date 2025-02-21
     * @param cmBrandCk
     * @return int
     */
    int deleteByPrimaryKey(CmBrandCk cmBrandCk);
	

	/**
     * 查询总记录数
     * @author lituo
     * @date 2025-02-21
     * @param cmBrandCkModel
     * @return int
     */
    int selectCount(CmBrandCkModel cmBrandCkModel);

    /**
     * 查询列表
     * @author lituo
     * @date 2025-02-21
     * @param cmBrandCkModel
     * @return List<CmBrandCkModel>
     */
    List<CmBrandCkModel> selectList(CmBrandCkModel cmBrandCkModel);

    /**
     * 走缓存查询（主键：成控编码）
     * @return
     */
    Map<String, CmBrandCkModel> selectListByCode();
    /**
     * 走缓存查询（主键：材料名称）
     * @return
     */
    Map<String, CmBrandCkModel> selectListByMaterial();

    /**
     * 分页查询
     * @author lituo
     * @date 2025-02-21
     * @param cmBrandCkModel
     * @return PageModel<CmBrandCkModel>
     */
    PageDTO<CmBrandCkModel> getListPage(CmBrandCkModel cmBrandCkModel);
	
}

